package com.youdoneed.user.searchword;

import com.youdoneed.base.pagination.Page;
import com.youdoneed.base.pagination.Paging;
import com.youdoneed.user.model.SearchWord;
import com.youdoneed.user.vo.SearchWordStatistics;

import java.util.Date;

/**
 * 搜索词服务接口。
 *
 * @author Ewing
 * @date 2017.2.8
 */
public interface SearchWordService {
    /**
     * 添加搜索词。
     */
    long addSearchWord(SearchWord searchWord);

    /**
     * 分页获取所有的搜索词。
     */
    Page<SearchWord> findSearchWords(Paging paging, Date startTime, Date endTime);

    /**
     * 搜索词统计。
     */
    Page<SearchWordStatistics> searchWordStatistics(
            Paging paging, Integer minSearchTimes, Integer maxSearchTimes, Date startTime, Date endTime);
}
